#ifndef DATABASE_HPP
#define DATABASE_HPP
#include "list.hpp"
#include "constants.hpp"
#include "hash.hpp"
#include "sparce_table.hpp"
#include "entry.hpp"
struct database {
	hash htime,hplace,hsubject,hteacher,hgroup;
	int time_c,place_c;
	sparce_table *db;
	void clear();
	void insert(char *f);
	void load(const char * dbname, const char * propname);
	void save(const char * dbname);
	const char *manage_query(const char *query);
};


#endif
